<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>补全门店信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">

    <meta http-equiv="Pragma"    content="no-cache"/>
     
    <meta http-equiv="Cache-Control"    content="no-cache"/>
     
    <meta http-equiv="Expires"    content="0"/>

    <link rel="stylesheet" href="/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="/layui/style/admin.css" media="all"/>
    <script charset="utf-8" src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script>
    <script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=WRNBZ-3WAKJ-VOEFT-KRMDP-JCUCK-WLBVM"></script>
    <style type="text/css">
        #container {
            min-width: 100px;
            min-height: 300px;
        }
    </style>
</head>
<body class="childrenBody">
<blockquote class="layui-elem-quote news_search">
    <div class="layui-form-item queryTable">

        <div class="layui-input-inline">
            <input name="name" type="text" value="" placeholder="输入门店名" autocomplete="off"
                   class="layui-input search_input">
        </div>

        <div class="layui-input-inline" style="width: unset;">
            <a class="layui-btn search_btn ">查询</a>
        </div>

    </div>

</blockquote>
<table class="layui-hide" id="enterprise_Store_table" lay-filter="enterprise_Store_table"></table>

<div id="add_store_win" style="display: none;">
    <form id="add_store_form" class="layui-form" action="" lay-filter="add_store_form">
        <input type="hidden" name="id" id="id"/>
        <span>带有<span style="color: red">*</span>为必填项</span>

        <div class="layui-form-item">
            <label class="layui-form-label">门店名称:<span style="color: red">*</span></label>
            <div class="layui-input-block">
                <input type="text" name="name" id="name" required lay-verify="required" value="" disabled="disabled"
                       autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-input-inline" style="margin-bottom: 20px;display: flex;justify-content: flex-start">
            <label class="layui-form-label">请选择地区:<span style="color: red">*</span></label>
            <select id="province" name="province" style="width: 200px" lay-filter="province">
                <option value="">请选择</option>
            </select>
            <select id="city" name="city" style="width: 200px" lay-filter="city">
                <option value="">请选择</option>
            </select>
            <select id="district" name="district" style="width: 200px" lay-filter="district">
                <option value="">请选择</option>
            </select>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">详细地址:<span style="color: red">*</span></label>
            <div class="layui-input-block">
                <input type="text" name="address" id="address" required lay-verify="required" value=""
                       style="width: 700px" placeholder="请输入详细地址" autocomplete="off" class="layui-input">
                <button type="button" class="layui-btn" style="display: inline-block" id="button">立即定位</button>
            </div>
        </div>

        <input type="hidden" name="offsetType" id="offsetType" value="3"/>
        <input type="hidden" name="latitude" id="latitude" placeholder="纬度" class="layui-input">
        <input type="hidden" name="longitude" id="longitude" placeholder="经度" class="layui-input">

        <div id="container"></div>

        <div class="layui-form-item">
            <label class="layui-form-label">门店电话:<span style="color: red">*</span></label>
            <div class="layui-input-block">
                <input type="text" name="telephone" id="telephone" value="" required lay-verify="required"
                       placeholder="请输入门店电话" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">门店图集:<span style="color: red">*</span></label>
            <div class="layui-input-block">
                <button type="button" class="layui-btn" id="select">
                    <i class="layui-icon">&#xe67c;</i>选择图片（最多选择5张，单张图片最大为5M）
                </button>
                <button type="button" class="layui-btn" id="start">开始上传</button>
                <button type="button" class="layui-btn" id="cleanImgs"><i class="fa fa-trash-o fa-lg"></i>清空图片
                </button>
            </div>
            <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
                预览图：       
                <div class="layui-upload-list" id="preview"></div>
            </blockquote>
        </div>
        <input type="hidden" id="url" name="url" style="display: none;">

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="addStoreOk">提交信息</button>
            </div>
        </div>
    </form>
</div>

<script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript" src="/layui/layui.js"></script>
<script type="text/javascript" src="/js/MathUtils.js"></script>
<script src="/js/citys.js"></script>
<script src="/js/enterprise/store_detailed.js"></script>

<script type="text/html" id="OptData">

    <a href="#" class="layui-btn layui-btn-xs" lay-event="store_info">补充信息</a>

</script>

</body>
</html>